package com.atguigu.member.service;


import com.atguigu.common.to.SocialUserTo;
import com.atguigu.member.entity.MemberReceiveAddressEntity;
import com.atguigu.member.exception.PhoneExistExcption;
import com.atguigu.member.exception.UserNameExistExcption;
import com.atguigu.member.vo.MemberRegistVo;
import com.atguigu.member.vo.MemberUserLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.member.entity.MemberEntity;

import java.util.List;
import java.util.Map;

/**
 * 会员
 *
 * @author mrs
 * @email 2314028487@qq.com
 * @date 2022-10-11 21:31:13
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);
    void checkPhoneUnique(String phone) throws PhoneExistExcption;

    void checkUserNameUnique(String userName) throws UserNameExistExcption;

    MemberEntity login(MemberUserLoginVo vo);

    MemberEntity oauthLogin(SocialUserTo to);
}

